package com.mes.service.cb;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.cb.OderDetailedMapper;
import com.mes.entity.cb.OrderDetailed;
import com.mes.entity.cb.OrderDetailedadd;
import com.mes.entity.cb.PageBean;
import com.mes.entity.cb.Pages;
import com.mes.entity.cb.PlanDetailed;

/**
 * @ClassName: OderDetailedServiceImpl 
 * @Description:采购
 * @Author cb
 * @Date 2017年12月26日 下午3:21:37 
 * @version 1.0
 */
@Service
@Transactional
public class OderDetailedServiceImpl implements OderDetailedService{

	@Resource
	private OderDetailedMapper oderDetailedMapper;
	
	@Override
	public List<PlanDetailed> list(PageBean page) {
		return oderDetailedMapper.list(page);
	}

	@Override
	public int getTotal(PageBean page) {
		return oderDetailedMapper.getTotal(page);
	}

	@Override
	public void orderDetailedAdd2(OrderDetailedadd detailedadd) {
		oderDetailedMapper.orderDetailedAdd2(detailedadd);
		
	}

	@Override
	public List<OrderDetailedadd> list2(PageBean page) {
		return oderDetailedMapper.list2(page);
	}

	@Override
	public int getTotal2(PageBean page) {
		return oderDetailedMapper.getTotal2(page);
	}

	@Override
	public int orderDe_insert(OrderDetailed orderDetailed) {
		return oderDetailedMapper.orderDe_insert(orderDetailed);
	}

	@Override
	public List<OrderDetailed> oderDetailed_list(PageBean pages) {
		return oderDetailedMapper.oderDetailed_list(pages);
	}

	@Override
	public int oderDetailed_total(PageBean pages) {
		return oderDetailedMapper.oderDetailed_total(pages);
	}

	@Override
	public Long oderDetailedBySumTotal(String number) {
		return oderDetailedMapper.oderDetailedBySumTotal(number);
	}


	@Override
	public List<OrderDetailed> oderDetailed_selectByNumber(String number) {
		return oderDetailedMapper.oderDetailed_selectByNumber(number);
	}

	@Override
	public int orderDetailed_delete(String dnumber) {
		return oderDetailedMapper.orderDetailed_delete(dnumber);
	}


}
